package com.sgw.networkapp;

import android.app.Application;
import android.content.Context;

import com.carlt.networklibs.NetworkManager;
import com.sgw.networkapp.utils.network1.NetWorkMonitorManager;

public class App extends Application {
    public static Context getContext() {
        return context;
    }

    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        //初始化
        NetWorkMonitorManager.getInstance().init(this);
        context = getApplicationContext();
        //初始化
        NetworkManager.getInstance().init(this);
    }


}
